Skip to content

Read each requirement of the Part 4 class cquery through the test that states it - #86

Merged
estebanzimanyi merged 1 commit into
masterfrom
test/ats-part4-cquery-requirements
Nov 19, 2026
Merged

estebanzimanyi merged 1 commit into
masterfrom
test/ats-part4-cquery-requirements

Conversation

@estebanzimanyi

Copy link
Copy Markdown
Member

ats_part4_test.go holds the requirements of the class cquery of OGC API -
Moving Features - Part 4 as rows beside the abstract tests of Part 1, keyed
by the identifier and number the draft gives them (Req 1 cquery_link, Req 2
window, Req 3 window_tumbling, Req 4 window_hopping, Req 5 window_count), each
naming the test that reads the answer it states. The rows are held to
CONFORMANCE.md, which records the requirements from the draft MobilityAPI
implements, row by row with the test it names, and to the test files.

A window result carries the bounds of its window: emitWindow writes
[start, end) for a time window, the span boundaries a TUMBLING or HOPPING
window covers, and [start, end] for a COUNT window, the times of its first
and last record. TestMeosWindowBounds reads them for each kind of window and
TestMeosTumblingWindow reads Requirement 3, two consecutive windows of fixed
duration that meet.

Witness. A window result carried the times of its first and last record
whatever its kind: a 3 s tumbling window [00:00, 00:03) over records at 1 s
and 2 s reported [00:01, 00:02], a hopping window [-2 s, 1 s) reported
[00:00, 00:00], and consecutive tumbling windows did not meet. Requirement 2
was credited to TestWindowResultShape, which built an Event literal and
checked the literal's own keys, reading nothing the service writes.

Measured. go test passes with and without the meos tag, libmeos built from
MobilityDB master 0d5a079d63; on master's engine the two new tests fail on
the TUMBLING and HOPPING bounds and pass on COUNT.

…t states it

ats_part4_test.go holds the requirements of the class cquery of OGC API -
Moving Features - Part 4 as rows beside the abstract tests of Part 1, keyed
by the identifier and number the draft gives them (Req 1 cquery_link, Req 2
window, Req 3 window_tumbling, Req 4 window_hopping, Req 5 window_count), each
naming the test that reads the answer it states. The rows are held to
CONFORMANCE.md, which records the requirements from the draft MobilityAPI
implements, row by row with the test it names, and to the test files.

A window result carries the bounds of its window: emitWindow writes
[start, end) for a time window, the span boundaries a TUMBLING or HOPPING
window covers, and [start, end] for a COUNT window, the times of its first
and last record. TestMeosWindowBounds reads them for each kind of window and
TestMeosTumblingWindow reads Requirement 3, two consecutive windows of fixed
duration that meet.

Witness. A window result carried the times of its first and last record
whatever its kind: a 3 s tumbling window [00:00, 00:03) over records at 1 s
and 2 s reported [00:01, 00:02], a hopping window [-2 s, 1 s) reported
[00:00, 00:00], and consecutive tumbling windows did not meet. Requirement 2
was credited to TestWindowResultShape, which built an Event literal and
checked the literal's own keys, reading nothing the service writes.

Measured. go test passes with and without the meos tag, libmeos built from
MobilityDB master 0d5a079d63; on master's engine the two new tests fail on
the TUMBLING and HOPPING bounds and pass on COUNT.
@estebanzimanyi
estebanzimanyi merged commit d8a1bc6 into master Nov 19, 2026
2 checks passed
@estebanzimanyi
estebanzimanyi deleted the test/ats-part4-cquery-requirements branch November 19, 2026 10:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant